package com.sensitive.words.mapper;

import com.sensitive.words.model.SensitiveWords;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 增删查敏感词mapper
 */
@Mapper
public interface SensitiveWordMapper {

    /**
     * 插入敏感词
     * @param sensitiveWords
     * @return
     */
    int insert(SensitiveWords sensitiveWords);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 根据id查询敏感词
     * @param id
     * @return
     */
    SensitiveWords selectById(Integer id);

    /**
     * 查询所有敏感词
     * @return
     */
    List<SensitiveWords> selectAll();

}
